<!DOCTYPE html>
<html>
<head>
    <title></title>
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html"/>
    <![endif]-->

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/channel.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <script src="__STATIC__/layout/js/jquery.min.js"></script>
    <!-- Sweet Alert -->
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <!-- Sweet alert -->
    <script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
</head>
<body class="white-bg" style="padding: 3px">
<div class="page-heade">
    <h2 class="title_color text-center">微信通讯录</h2>
</div>
<div class="padding-10">
    <span class="lr_5"></span><a href="javascript:;" class="btn btn-w-m btn-info" id="sync">同步通讯录</a>
</div>
<div class="padding-10">

    <table class="table table-striped table-bordered table-hover bud_hei text-center" id="editable">
        <thead>
            <tr class="info">
                <th class="text-center">No.</th>
                <th class="text-center">账号</th>
                <th class="text-center">姓名</th>
                <th class="text-center">微信号</th>
                <th class="text-center">部门</th>
                <th class="text-center">职务</th>
                <th class="text-center">手机</th>
                <th class="text-center">邮箱</th>
                <th class="text-center">状态</th>
            </tr>
        </thead>
        <tbody>
        {volist name="data" id="row" key="k"}
            <tr class="gradeX">
                <td>{$k+(request()->param('page')?request()->param('page'):1-1)*10}</td>
                <td>{$row.zh}</td>
                <td>{$row.xm}</td>
                <td>{$row.wxh}</td>
                <td>{$row.bm}</td>
                <td>{$row.zw}</td>
                <td>{$row.sj}</td>
                <td>{$row.yx}</td>
                <td>{$row.zt}</td>
            </tr>
        {/volist}
        </tbody>
    </table>
   <div class="row text-center" id="pageText" style="padding: 0;margin: 0;">
		<div class="col-sm-6 text-left"><div class="padding-10 countSize">共{$count}条记录，{$maxpage}页&nbsp;&nbsp;</div></div>
		<div class="col-sm-6 text-right">{$page}</div>
	</div>
</div>

</body>
</html>
<script>
    $(function () {

        //同步微信通讯录
        $('#sync').on('click',function () {
            $.post('{:url("synchronous_distribution_member_to_weixin")}',function (data) {
                swal('',data.errmsg,'success')
            },'json')
        })

    })
</script>